<script>
  let cats = [
    { id: 'J---aiyznGQ', name: 'Keyboard Cat' },
    { id: 'z_AbfPXTKms', name: 'Maru' },
    { id: 'OUtn3pvWmpg', name: 'Henri The Existential Cat' },
  ]
</script>

<ul>
  {#each cats as { id, name } (id)}
    <li>
      {name}的id是：{id}
    </li>
  {/each}
</ul>
